import request from '@/utils/request'

export default {
  // 课程分页查询
  search(currentPage,pageSize,courseQueryVo) {
    return request({
      url: `/privateCourses/page/${currentPage}/${pageSize}`,
      method: 'post',
      data: courseQueryVo
    })
  },

  // 添加课程
  addcourse(privateCoursesAddVo) {
    return request({
      url: `/privateCourses`,
      method: 'post',
      data: privateCoursesAddVo
    })
  },

  // 删除课程
  deleteCourse(id) {
    return request({
      url: `/privateCourses/${id}`,
      method: 'delete',

    })
  },

  // 通过id查询
  queryById(id) {
    return request({
      url: `/privateCourses/${id}`,
      method: 'get',

    })
  },

  // 编辑课程
  modifyCourses(privateCoursesAddVo) {
    return request({
      url: `/privateCourses`,
      method: 'put',
      data: privateCoursesAddVo
    })
  },




}
